home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 15
/
BBS in a box XV-1.iso
/
Files
/
Educ
/
Calc
/
MathPad 2.35.sit
/
XFuns
/
imageRGB.rsrc
/
TEXT_128_imageRGB().txt
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-04-29
|
389 b
|
14 lines
-- imageRGB(rgbarray)
-- Allows direct specification of the red, green and blue color components of each image element. The intensity of each component can range from 0.0 to 1.0
rgbarray[ix,iy] = {red(ix),green(iy),blue(ix)} dim[nrows,ncols]
n=15; nrows=n; ncols=n
red(i) = (i-1)/(n-1)
green(i) = (i-1)/(n-1)
blue(i) = (n-i)/(n-1)
imageRGB(rgbarray):
Xmin=0; Xmax=n; Ymin=0; Ymax=n